<extend name="Public:base" />

<block name="head">
	<title>角色主页</title>
</block>

<block name="body">
	<p align="center">
		<h2>角色主页</h2>
		<a href="./add.html">添加页</a>
	</p>
	<table border="1" width="100%">
		<tr>
			<th>编号</th>
			<th>权限名称</th>
			<th>模型名称</th>
			<th>控制器名称</th>
			<th>方法名称</th>
			<th>是否导航显示</th>
			<th>操作</th>
		</tr>
		<volist name="data" id="vo">
			<tr align="center">
				<td>{$vo.id}</td>
				<td>{$vo.rule_name}</td>
				<td>{$vo.module_name}</td>
				<td>{$vo.controller_name}</td>
				<td>{$vo.action_name}</td>
				<td>{$vo.is_shop}</td>
				<td>
					<gt name="vo.id" value="1">
					<a href="{:U('edit','id='.$vo['id'])}">编辑</a>
					<a href="{:U('dels','id='.$vo['id'])}">删除</a>
					</gt>
				</td>
			</tr>
		</volist>
		<tr>
			<td colspan="9">
			    {$data.pageStr}
			</td>
		</tr>
	</table>
</block>
